from getModel import LDR2HDR
import tensorflow as tf
import numpy as np
import pickle

#print par
w_dict={}

with tf.Session() as sess:
#      parameters=par.eval()
     sess.run(tf.global_variables_initializer())
     model=LDR2HDR()
     par=tf.trainable_variables()
     for var in par:
         w_dict[var.name]=sess.run(var)
 

output=open('w.pkl','wb')
pickle.dump(w_dict,output)
output.close()
#np.save('w.npy',parameters)
#my_par=np.load('w.npy') 
